#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#define i 60
int main(void)
{
	int a = 0, b = 0, c = 0;
	scanf("%d", &a);
	while (a > 0)
	{
		b = a / i;
		c = a % i;
		printf("%d:%d", b, c);
		scanf("%d", &a);
	}

	return 0;
}